package com.yjt.common.enums;

/**
 * @author 曾智平
 * @ClassName: OperTypeEnum
 * @Description: 操作类型
 * @date 2021/9/28 11:06
 */
public enum OperTypeEnum {
    ADD("新增"),
    DEL("删除"),
    MOD("修改"),
    UPL("上传"),
    DOW("下载"),
    LOGIN("登录"),
    LOGOUT("退出");
    private String msg;

    OperTypeEnum(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public static String getValue(String name) {
        OperTypeEnum[] operTypeEnums = values();
        for (OperTypeEnum operTypeEnum : operTypeEnums) {
            if (operTypeEnum.name().equals(name)) {
                return operTypeEnum.getMsg();
            }
        }
        return "";
    }

}
